package com.atguigu.gmall.product.mapper;

import com.atguigu.gmall.model.product.SpuSaleAttr;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName: SpuSaleAttrMapper
 * Package: com.atguigu.gmall.product.mapper
 * Description:
 *
 * @Author 刘轩
 * @Create 2023-08-19 19:04
 * @Version 1.0
 */

@Mapper
public interface SpuSaleAttrMapper extends BaseMapper<SpuSaleAttr> {
    /**
     * 查询销售属性-销售属性值
     * getSpuSaleAttList
     * @param spuId
     * @return
     */
    List<SpuSaleAttr> getSpuSaleAttrList(Long spuId);

    /**
     *   根据spuId-skuId 查询销售属性数据
     * @param skuId
     * @param spuId
     * @return
     */

    List<SpuSaleAttr> selectSpuSaleAttrListCheckBySku(@Param("skuId") Long skuId, @Param("spuId") Long spuId);


}
